package com.duanjw.springboot.autoconfigurition;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.duanjw.springboot.autoconfigurition.config.UserProperties;

@SpringBootApplication
public class AutoConfigurition {

    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(AutoConfigurition.class);
        UserProperties bean = run.getBean(UserProperties.class);
        System.out.println(bean.getUsers());
    }
}
